#!/usr/bin/env bash



ROOT=`pwd`

echo "$ROOT"


make build


cp -rf "$ROOT""/bin/gotechback" "$ROOT""/deploy/gotechback"
cp -rf "$ROOT""/configs/gotechback/config.yaml" "$ROOT""/deploy/gotechback"
ls -lh "$ROOT""/deploy/gotechback"

# shellcheck disable=SC2164
cd  "$ROOT""/deploy/gotechback"

docker pull debian:10.10-slim
docker build -t gotechback/v1:stable .




rm -rf "$ROOT""/deploy/gotechback/gotechback"
rm -rf "$ROOT""/deploy/gotechback/config.yaml"

